package com.zyc.mapper;

import com.zyc.pojo.EnterprisePojo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EnterpriseMapper {
    List<EnterprisePojo> findAllEnterprises();//查询全部
    EnterprisePojo findEnterpriseByID(String id);//根据编号查询
    int insertEnterprise(EnterprisePojo enterprisePojo);//添加
    int deleteEnterpriseByID(String id);//根据编号删除
    int updateEnterprise(EnterprisePojo enterprisePojo);//修改信息
    List<EnterprisePojo> findEnterpriseByStr(String searchStr);//模糊查询
    int deleteEnterprises(String[] ids);
}
